#ifndef SERVER_H
#define SERVER_H

#include <QtGui>
#include <QtNetwork>

class Server : public QDialog
{
Q_OBJECT
public:
	Server();
private:
	QLabel *ipLabel, *portLabel, *sendLabel, *receiveLabel;
	QLineEdit *ipLineEdit, *portLineEdit;
	QTextEdit *sendTextEdit, *receiveTextEdit;
	QPushButton *sendButton;
	QTcpServer *tcpServer;
	QTcpSocket *socket;
private slots:
	void sendMessage();
	void enableSend();
};

#endif
